import { createSlice } from "@reduxjs/toolkit"
const searchSlice = createSlice({
  name: "searchSlice",
  initialState: {
    wd: "",
    searchResult: []
  },
  reducers: {
    setWd(state, { payload }) {
      state.wd = payload
    },
    setSearchResult(state, { payload }) {
      state.searchResult = payload
    }
  }
})
export const { setWd, setSearchResult } = searchSlice.actions
export default searchSlice.reducer